package com.mine.modules.vm.service;

import com.mine.common.domain.vo.Result;
import com.mine.modules.vm.domain.dto.BatchAddSensorGroupDto;
import com.mine.modules.vm.domain.query.SensorQuery;
import com.mine.modules.vm.entity.VmSensor;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 传感器 服务类
 * </p>
 *
 * @author xujf
 * @since 2024-11-08
 */
public interface IVmSensorService extends IService<VmSensor> {

    Result<?> queryPageList(SensorQuery sensorQuery);

    Result<?> queryPageListNotInDevice(SensorQuery sensorQuery);

    Result<?> batchAddSensorGroup(BatchAddSensorGroupDto addSensorGroups);

    Result<?> sensorGroupListByLayerId(String layerId);

    Result<?> editSensorAliasById(String id, String alias);

    Result<?> editSensorAliasByCode(String code, String alias);

    Result<?> getDataValue(String tableName, String startTime, String endTime);

    Result<?> pageDataValue(Integer pageNo, Integer pageSize,String tableName, String startTime, String endTime);

    Result<?> sensorQueryTime(String tableName, String dateTime);

    void synSensors();

}
